/*
 * @Description: 
 * @version: 
 * @Author: wyx
 * @Date: 2020-10-06 09:28:33
 * @LastEditDate: Do not exit
 */
import request from '@/utils/request'
/**
 * 通过memberId查询
 */
export function selectByMemberId(keyword){
    return request({url:'/order-service/order/list/',method:'post',data:keyword})
}

/**
 * 创建订单
 */
export function addOrder(order){
    return request({url:'/order-service/order/',method:'post',data:order})
}

/**
 * 更新订单状态
 */
export function updateOrder(order){
    return request({url:'/order-service/order',method:'put',data:order})
}
/**
 * 删除订单
 */
export function deleteOrder(id){
    return request({url:'/order-service/order/'+id,method:'delete'})
}
/**
 * 通过orderId查询detail
 */
export function selectDetailsByOrderId(orderId){
    return request({url:'/order-service/orderDetails/list/'+orderId,method:'get'})
}

/**
 * 跳转支付宝页面
 */
export function jump(id){
    return request({url:'/order-service/order/payByAli/'+id,method:'get'})
}